home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / misc / cookies.lha / Cookie / README < prev    next >
Text File  |  1991-01-14  |  2KB  |  43 lines

  1.  
  2. The second release of Karl's fortune cookie program, with cookies...  12-Jan-89
  3. -------------------------------------------------------------------------------
  4.  
  5. Actually, the cookie file contains fortune cookies, sayings, jokes, aphorisms,
  6. quotes and so on.  Those likely to be offended by words and ideas that are
  7. alien to them are asked to not read the cookie file.
  8.  
  9. The code and cookies are released into the public domain without restriction.
  10. I ask that you retain my name in the source code if you redistribute this stuff,
  11. and that you redistribute source along with binaries.
  12.  
  13. No warranties are expressed or implied -- this is free code.  We do not have
  14. a contract.
  15.  
  16. The code is written for System V but the only area of incompatibility should be
  17. the rand() function.  Only minor hacking should be necessary to port to BSD,
  18. for example.
  19.  
  20. To use, unshar this archive and do a 'make' to compile 'cookie' and 'cookhash'.
  21. Collect the six parts of the cookie file, strip off the headers and trailers,
  22. and 'cat' them (in proper order) into one file.  The include file "cookie.h"
  23. defines the location of the cookie file as being "/usr/local/lib/sayings".
  24. If you want to put it elsewhere, change cookie.h and rebuild 'cookie'.
  25.  
  26. Cookie needs a hash file for the cookie file, by default called
  27. "/usr/local/lib/sayhash".  This is created by the 'cookhash' program.
  28. Cookhash is simply a filter that reads a cookie file in as stdin and writes
  29. a cookie hash file to stdout.  (Cookies are delineated in the cookie file
  30. by a line containing two percent signs and nothing else.)  Thus, if you've
  31. moved the cookie file to /usr/local/lib, 'cd' there and do a
  32. "cookhash <sayings >sayhash" to create the hash file.
  33.  
  34. After that, 'cookie' should produce a cookie.  Cookie can also be executed
  35. with two arguments, the name of a cookie file followed by the name of
  36. its hash file.
  37.  
  38. If you find quotes in the file that are unattributed and you know the
  39. attributions, please mail them to karl@sugar.uu.net or uunet!sugar!karl
  40.  
  41. Regards,
  42. karl @ The Hacker's Haven, Missouri City, Texas -- 12-Jan-89
  43.